[index]

Rectangle Property

Syntax

set the {rectangle | rect} of <object> to
<left>, <top>, <right>, <bottom> Applies to all objects, backgrounds, card windows, message box, toolbar

Description

The rectangle property determines or changes the size and location of an object. The rectangle property consists of four offsets, which are separated by commas and measured in pixels from the top-left corner of the current card (for objects) or of the screen (for the toolbar and windows). The first and third numbers measure the horizontal offsets, the second and fourth numbers measure the vertical offsets. The rectangle property can be abbreviated rect.

Examples

The rectangle property can be used to move a button 50 pixels to the right of its present location. Create a button named "Test". Type the following lines into the Message Box: put the rectangle of button "test" into myRect add 100 to item 1 of myrect add 100 to item 3 of myrect set the rectangle of button "test" to myRect
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.